Integrand size = 29, antiderivative size = 214 \[ \int \frac {(e+f x) \text {csch}^3(c+d x)}{a+i a \sinh (c+d x)} \, dx=\frac {3 (e+f x) \text {arctanh}\left (e^{c+d x}\right )}{a d}+\frac {i (e+f x) \coth (c+d x)}{a d}-\frac {f \text {csch}(c+d x)}{2 a d^2}-\frac {(e+f x) \coth (c+d x) \text {csch}(c+d x)}{2 a d}-\frac {2 i f \log \left (\cosh \left (\frac {c}{2}+\frac {i \pi }{4}+\frac {d x}{2}\right )\right )}{a d^2}-\frac {i f \log (\sinh (c+d x))}{a d^2}+\frac {3 f \operatorname {PolyLog}\left (2,-e^{c+d x}\right )}{2 a d^2}-\frac {3 f \operatorname {PolyLog}\left (2,e^{c+d x}\right )}{2 a d^2}+\frac {i (e+f x) \tanh \left (\frac {c}{2}+\frac {i \pi }{4}+\frac {d x}{2}\right )}{a d} \]
[Out]
Time = 0.28 (sec) , antiderivative size = 214, normalized size of antiderivative = 1.00, number of steps used = 19, number of rules used = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.276, Rules used = {5694, 4270, 4267, 2317, 2438, 4269, 3556, 3399} \[ \int \frac {(e+f x) \text {csch}^3(c+d x)}{a+i a \sinh (c+d x)} \, dx=\frac {3 (e+f x) \text {arctanh}\left (e^{c+d x}\right )}{a d}+\frac {3 f \operatorname {PolyLog}\left (2,-e^{c+d x}\right )}{2 a d^2}-\frac {3 f \operatorname {PolyLog}\left (2,e^{c+d x}\right )}{2 a d^2}-\frac {f \text {csch}(c+d x)}{2 a d^2}-\frac {i f \log (\sinh (c+d x))}{a d^2}-\frac {2 i f \log \left (\cosh \left (\frac {c}{2}+\frac {d x}{2}+\frac {i \pi }{4}\right )\right )}{a d^2}+\frac {i (e+f x) \tanh \left (\frac {c}{2}+\frac {d x}{2}+\frac {i \pi }{4}\right )}{a d}+\frac {i (e+f x) \coth (c+d x)}{a d}-\frac {(e+f x) \coth (c+d x) \text {csch}(c+d x)}{2 a d} \]
[In]
[Out]
Rule 2317
Rule 2438
Rule 3399
Rule 3556
Rule 4267
Rule 4269
Rule 4270
Rule 5694
Rubi steps \begin{align*} \text {integral}& = -\left (i \int \frac {(e+f x) \text {csch}^2(c+d x)}{a+i a \sinh (c+d x)} \, dx\right )+\frac {\int (e+f x) \text {csch}^3(c+d x) \, dx}{a} \\ & = -\frac {f \text {csch}(c+d x)}{2 a d^2}-\frac {(e+f x) \coth (c+d x) \text {csch}(c+d x)}{2 a d}-\frac {i \int (e+f x) \text {csch}^2(c+d x) \, dx}{a}-\frac {\int (e+f x) \text {csch}(c+d x) \, dx}{2 a}-\int \frac {(e+f x) \text {csch}(c+d x)}{a+i a \sinh (c+d x)} \, dx \\ & = \frac {(e+f x) \text {arctanh}\left (e^{c+d x}\right )}{a d}+\frac {i (e+f x) \coth (c+d x)}{a d}-\frac {f \text {csch}(c+d x)}{2 a d^2}-\frac {(e+f x) \coth (c+d x) \text {csch}(c+d x)}{2 a d}+i \int \frac {e+f x}{a+i a \sinh (c+d x)} \, dx-\frac {\int (e+f x) \text {csch}(c+d x) \, dx}{a}-\frac {(i f) \int \coth (c+d x) \, dx}{a d}+\frac {f \int \log \left (1-e^{c+d x}\right ) \, dx}{2 a d}-\frac {f \int \log \left (1+e^{c+d x}\right ) \, dx}{2 a d} \\ & = \frac {3 (e+f x) \text {arctanh}\left (e^{c+d x}\right )}{a d}+\frac {i (e+f x) \coth (c+d x)}{a d}-\frac {f \text {csch}(c+d x)}{2 a d^2}-\frac {(e+f x) \coth (c+d x) \text {csch}(c+d x)}{2 a d}-\frac {i f \log (\sinh (c+d x))}{a d^2}+\frac {i \int (e+f x) \csc ^2\left (\frac {1}{2} \left (i c+\frac {\pi }{2}\right )+\frac {i d x}{2}\right ) \, dx}{2 a}+\frac {f \text {Subst}\left (\int \frac {\log (1-x)}{x} \, dx,x,e^{c+d x}\right )}{2 a d^2}-\frac {f \text {Subst}\left (\int \frac {\log (1+x)}{x} \, dx,x,e^{c+d x}\right )}{2 a d^2}+\frac {f \int \log \left (1-e^{c+d x}\right ) \, dx}{a d}-\frac {f \int \log \left (1+e^{c+d x}\right ) \, dx}{a d} \\ & = \frac {3 (e+f x) \text {arctanh}\left (e^{c+d x}\right )}{a d}+\frac {i (e+f x) \coth (c+d x)}{a d}-\frac {f \text {csch}(c+d x)}{2 a d^2}-\frac {(e+f x) \coth (c+d x) \text {csch}(c+d x)}{2 a d}-\frac {i f \log (\sinh (c+d x))}{a d^2}+\frac {f \operatorname {PolyLog}\left (2,-e^{c+d x}\right )}{2 a d^2}-\frac {f \operatorname {PolyLog}\left (2,e^{c+d x}\right )}{2 a d^2}+\frac {i (e+f x) \tanh \left (\frac {c}{2}+\frac {i \pi }{4}+\frac {d x}{2}\right )}{a d}+\frac {f \text {Subst}\left (\int \frac {\log (1-x)}{x} \, dx,x,e^{c+d x}\right )}{a d^2}-\frac {f \text {Subst}\left (\int \frac {\log (1+x)}{x} \, dx,x,e^{c+d x}\right )}{a d^2}-\frac {(i f) \int \coth \left (\frac {c}{2}-\frac {i \pi }{4}+\frac {d x}{2}\right ) \, dx}{a d} \\ & = \frac {3 (e+f x) \text {arctanh}\left (e^{c+d x}\right )}{a d}+\frac {i (e+f x) \coth (c+d x)}{a d}-\frac {f \text {csch}(c+d x)}{2 a d^2}-\frac {(e+f x) \coth (c+d x) \text {csch}(c+d x)}{2 a d}-\frac {2 i f \log \left (\cosh \left (\frac {c}{2}+\frac {i \pi }{4}+\frac {d x}{2}\right )\right )}{a d^2}-\frac {i f \log (\sinh (c+d x))}{a d^2}+\frac {3 f \operatorname {PolyLog}\left (2,-e^{c+d x}\right )}{2 a d^2}-\frac {3 f \operatorname {PolyLog}\left (2,e^{c+d x}\right )}{2 a d^2}+\frac {i (e+f x) \tanh \left (\frac {c}{2}+\frac {i \pi }{4}+\frac {d x}{2}\right )}{a d} \\ \end{align*}
Both result and optimal contain complex but leaf count is larger than twice the leaf count of optimal. \(461\) vs. \(2(214)=428\).
Time = 3.54 (sec) , antiderivative size = 461, normalized size of antiderivative = 2.15 \[ \int \frac {(e+f x) \text {csch}^3(c+d x)}{a+i a \sinh (c+d x)} \, dx=\frac {\left (\cosh \left (\frac {1}{2} (c+d x)\right )+i \sinh \left (\frac {1}{2} (c+d x)\right )\right ) \left (2 i (i f+2 d (e+f x)) \cosh \left (\frac {1}{2} (c+d x)\right ) \left (i+\coth \left (\frac {1}{2} (c+d x)\right )\right )-d (e+f x) \left (i+\coth \left (\frac {1}{2} (c+d x)\right )\right ) \text {csch}\left (\frac {1}{2} (c+d x)\right )-8 f (c+d x) \left (\cosh \left (\frac {1}{2} (c+d x)\right )+i \sinh \left (\frac {1}{2} (c+d x)\right )\right )+16 f \arctan \left (\tanh \left (\frac {1}{2} (c+d x)\right )\right ) \left (\cosh \left (\frac {1}{2} (c+d x)\right )+i \sinh \left (\frac {1}{2} (c+d x)\right )\right )+4 \left (-2 i f (c+d x)-(2 i f+3 d (e+f x)) \log \left (1-e^{-c-d x}\right )+(-2 i f+3 d (e+f x)) \log \left (1+e^{-c-d x}\right )-3 f \operatorname {PolyLog}\left (2,-e^{-c-d x}\right )+3 f \operatorname {PolyLog}\left (2,e^{-c-d x}\right )\right ) \left (\cosh \left (\frac {1}{2} (c+d x)\right )+i \sinh \left (\frac {1}{2} (c+d x)\right )\right )+16 i d (e+f x) \sinh \left (\frac {1}{2} (c+d x)\right )+8 f \log (\cosh (c+d x)) \left (-i \cosh \left (\frac {1}{2} (c+d x)\right )+\sinh \left (\frac {1}{2} (c+d x)\right )\right )+2 (f+2 i d (e+f x)) \left (\cosh \left (\frac {1}{2} (c+d x)\right )+i \sinh \left (\frac {1}{2} (c+d x)\right )\right ) \tanh \left (\frac {1}{2} (c+d x)\right )-i d (e+f x) \text {sech}\left (\frac {1}{2} (c+d x)\right ) \left (-i+\tanh \left (\frac {1}{2} (c+d x)\right )\right )\right )}{8 d^2 (a+i a \sinh (c+d x))} \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 440 vs. \(2 (185 ) = 370\).
Time = 2.38 (sec) , antiderivative size = 441, normalized size of antiderivative = 2.06
method | result | size |
risch | \(-\frac {-3 i d e \,{\mathrm e}^{3 d x +3 c}-5 \,{\mathrm e}^{2 d x +2 c} d f x +3 d f x \,{\mathrm e}^{4 d x +4 c}+i d e \,{\mathrm e}^{d x +c}-5 \,{\mathrm e}^{2 d x +2 c} d e +3 d e \,{\mathrm e}^{4 d x +4 c}+i d f x \,{\mathrm e}^{d x +c}+4 d f x +f \,{\mathrm e}^{4 d x +4 c}-i {\mathrm e}^{3 d x +3 c} f +i {\mathrm e}^{d x +c} f +4 d e -f \,{\mathrm e}^{2 d x +2 c}-3 i d f x \,{\mathrm e}^{3 d x +3 c}}{\left ({\mathrm e}^{2 d x +2 c}-1\right )^{2} d^{2} \left ({\mathrm e}^{d x +c}-i\right ) a}-\frac {3 f \ln \left (1-{\mathrm e}^{d x +c}\right ) x}{2 a d}+\frac {3 f \ln \left ({\mathrm e}^{d x +c}+1\right ) x}{2 a d}-\frac {3 e \ln \left ({\mathrm e}^{d x +c}-1\right )}{2 a d}+\frac {4 i f \ln \left ({\mathrm e}^{d x +c}\right )}{a \,d^{2}}-\frac {i f \ln \left ({\mathrm e}^{d x +c}-1\right )}{a \,d^{2}}-\frac {i f \ln \left ({\mathrm e}^{d x +c}+1\right )}{a \,d^{2}}-\frac {i f \ln \left (1+{\mathrm e}^{2 d x +2 c}\right )}{a \,d^{2}}+\frac {3 e \ln \left ({\mathrm e}^{d x +c}+1\right )}{2 a d}-\frac {3 f \ln \left (1-{\mathrm e}^{d x +c}\right ) c}{2 a \,d^{2}}+\frac {3 c f \ln \left ({\mathrm e}^{d x +c}-1\right )}{2 a \,d^{2}}+\frac {2 f \arctan \left ({\mathrm e}^{d x +c}\right )}{a \,d^{2}}+\frac {3 f \operatorname {polylog}\left (2, -{\mathrm e}^{d x +c}\right )}{2 a \,d^{2}}-\frac {3 f \operatorname {polylog}\left (2, {\mathrm e}^{d x +c}\right )}{2 a \,d^{2}}\) | \(441\) |
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 817 vs. \(2 (181) = 362\).
Time = 0.28 (sec) , antiderivative size = 817, normalized size of antiderivative = 3.82 \[ \int \frac {(e+f x) \text {csch}^3(c+d x)}{a+i a \sinh (c+d x)} \, dx=\text {Too large to display} \]
[In]
[Out]
\[ \int \frac {(e+f x) \text {csch}^3(c+d x)}{a+i a \sinh (c+d x)} \, dx=- \frac {i \left (\int \frac {e \operatorname {csch}^{3}{\left (c + d x \right )}}{\sinh {\left (c + d x \right )} - i}\, dx + \int \frac {f x \operatorname {csch}^{3}{\left (c + d x \right )}}{\sinh {\left (c + d x \right )} - i}\, dx\right )}{a} \]
[In]
[Out]
\[ \int \frac {(e+f x) \text {csch}^3(c+d x)}{a+i a \sinh (c+d x)} \, dx=\int { \frac {{\left (f x + e\right )} \operatorname {csch}\left (d x + c\right )^{3}}{i \, a \sinh \left (d x + c\right ) + a} \,d x } \]
[In]
[Out]
\[ \int \frac {(e+f x) \text {csch}^3(c+d x)}{a+i a \sinh (c+d x)} \, dx=\int { \frac {{\left (f x + e\right )} \operatorname {csch}\left (d x + c\right )^{3}}{i \, a \sinh \left (d x + c\right ) + a} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {(e+f x) \text {csch}^3(c+d x)}{a+i a \sinh (c+d x)} \, dx=\int \frac {e+f\,x}{{\mathrm {sinh}\left (c+d\,x\right )}^3\,\left (a+a\,\mathrm {sinh}\left (c+d\,x\right )\,1{}\mathrm {i}\right )} \,d x \]
[In]
[Out]